package com.gitee.tianchaohongyu.jdcl.aspect;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * web请求清洗切面
 */
@Aspect
public class RequestMappingAspect extends AbstractParamsAspect {

  @Around("@within(requestMapping) || @annotation(requestMapping)")
  public Object around(ProceedingJoinPoint joinPoint, RequestMapping requestMapping) throws Throwable {
    return cleanJoinPoint(joinPoint);
  }
}